package org.rency.common.trigger.schedule;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.rency.common.trigger.beans.TaskStatusEnum;

/**
 * 上下文
 * @author: user_rcy@163.com
 * </br>Created on 2015年12月1日
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class DaemonContext {
	
	private Integer triggerId;
	
	private String beanName;
	
	private String description;
	
	private Date previousFire;
	
	private Date nextFire;
	
	private TaskStatusEnum status;
	
	private boolean concurrentTag;
	
	private String memo;

	public Integer getTriggerId() {
		return triggerId;
	}

	public void setTriggerId(Integer triggerId) {
		this.triggerId = triggerId;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getPreviousFire() {
		return previousFire;
	}

	public void setPreviousFire(Date previousFire) {
		this.previousFire = previousFire;
	}

	public Date getNextFire() {
		return nextFire;
	}

	public void setNextFire(Date nextFire) {
		this.nextFire = nextFire;
	}

	public TaskStatusEnum getStatus() {
		return status;
	}

	public void setStatus(TaskStatusEnum status) {
		this.status = status;
	}

	public boolean isConcurrentTag() {
		return concurrentTag;
	}

	public void setConcurrentTag(boolean concurrentTag) {
		this.concurrentTag = concurrentTag;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}
